From cf462776abd6fab92c35382e5700485814f4e7c3 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Thu, 25 Aug 2005 14:41:06 +0000 Subject: [PATCH] g/c Linux 2.4 netback support. Signed-off-by: Christian Limpach --- linux-2.6-xen-sparse/drivers/xen/netback/netback.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c index 778438ed49..ab5c6db1b7 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c @@ -13,10 +13,6 @@ #include "common.h" #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) -#include -#endif - #if defined(CONFIG_XEN_NETDEV_GRANT_TX) || defined(CONFIG_XEN_NETDEV_GRANT_RX) #include #include @@ -153,11 +149,7 @@ static inline void maybe_schedule_tx_action(void) static inline int is_xen_skb(struct sk_buff *skb) { extern kmem_cache_t *skbuff_cachep; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) kmem_cache_t *cp = (kmem_cache_t *)virt_to_page(skb->head)->lru.next; -#else - kmem_cache_t *cp = (kmem_cache_t *)virt_to_page(skb->head)->list.next; -#endif return (cp == skbuff_cachep); } @@ -642,11 +634,7 @@ static void net_tx_action(unsigned long unused) netif->credit_timeout.expires = next_credit; netif->credit_timeout.data = (unsigned long)netif; netif->credit_timeout.function = tx_credit_callback; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) add_timer_on(&netif->credit_timeout, smp_processor_id()); -#else - add_timer(&netif->credit_timeout); -#endif break; } } -- 2.30.2